package com.david.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Description: 配置类
 * @Author: wangwei
 * @CreateDate: 2022/1/13 11:39
 */
@Configuration
public class MyConfig {


    @Bean
//    @LoadBalanced
    public RestTemplate restTemplate(){
        return  new RestTemplate();
    }
}
